package com.mtzqc.common.manager

import com.mtzqc.common.kt.loadService
import com.mtzqc.common.service.LoggerService

object LogManager {
    val service: LoggerService by lazy {
        loadService()
    }

    fun d(vararg message: Any?) {
        if (message.isNotEmpty()) {
            service.d(message)
        }
    }

    fun i(vararg message: Any?) {
        if (message.isNotEmpty()) {
            service.i(message)
        }
    }

    fun w(vararg message: Any?) {
        if (message.isNotEmpty()) {
            service.w(message)
        }
    }

    fun e(vararg message: Any?) {
        if (message.isNotEmpty()) {
            service.e(message)
        }
    }
}